package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.RoomBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IRoomMapper extends BaseMapper<RoomBean> {

    public List<RoomBean> findBySex(@Param("sex") String sex);

//    public void updateRoomStatus(@Param("roomId") Integer roomId, @Param("status") String roomStatus);

//    public RoomBean findById(Integer roomId);

    public IPage<RoomBean> findByItem(Page page, String status, String address, String type, String isLive);

    public RoomBean findById(Integer roomId);
}
